package com.car.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.car.dao.CarMapper;
import com.car.dao.CustomCarMapper;
import com.car.entity.Car;
import com.car.entity.CarCustom;
import com.car.entity.CarExample;
import com.car.entity.CarSeach;
import com.car.service.CarManagerService;

@Service("carService")
public class CarManagerServiceImpl implements CarManagerService {
	
	@Autowired
	private CarMapper carmapper;

	@Autowired
	private CustomCarMapper customCar;

	@Override
	public int countByExample(CarExample example) {
		return carmapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CarExample example) {
		return 0;
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return carmapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Car record) {
		return carmapper.insert(record);
	}

	@Override
	public int insertSelective(Car record) {
		return 0;
	}

	@Override
	public List<Car> selectByExample(CarExample example) {
		return null;
	}

	@Override
	public Car selectByPrimaryKey(Integer id) {
		return carmapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Car record, CarExample example) {
		return 0;
	}

	@Override
	public int updateByExample(Car record, CarExample example) {
		return 0;
	}

	@Override
	public int updateByPrimaryKeySelective(Car record) {
		return 0;
	}

	@Override
	public int updateByPrimaryKey(Car record) {
		return 0;
	}

	@Override
	public List<CarCustom> selectByExamplewithPage(CarSeach carSeach) {
		return customCar.selectByExamplewithPage(carSeach);
	}

	@Override
	public Integer countByCarSeach(CarSeach carSeach) {
		return customCar.countByCarSeach(carSeach);
	}

}
